#include "drv_bsp.h"

extern void uart_all_config(void);

extern void adc_config(void);

extern void timer_config(void);

void dsp_drv_init(void)
{
	RCC->CR = 0x01 << 8 | 0x01 << 16;
	RCC->ECSCR = 0x03 << 2;
	RCC->CFGR = 0x01;
	while ((RCC->CR & (1U << 17)) == 0U);
	
	/* xM */
	SystemCoreClock = 32000000;
	
	
	HAL_InitTick(TICK_INT_PRIORITY);
	__HAL_RCC_SYSCFG_CLK_ENABLE();
  __HAL_RCC_PWR_CLK_ENABLE();
	
	uart_all_config();
	
	adc_config();
	
	timer_config();
}
